#ifndef __FHTTPD_BASE_OBJECT_IF_H__
#define __FHTTPD_BASE_OBJECT_IF_H__
#include <string>
#include "json/json.h"


class SerializeIf
{
public:
   virtual Json::Value Convert2JsonValue() = 0;
};

class BaseObjectIf : public SerializeIf
{
public:
	BaseObjectIf(int c, const std::string& msg):
		code(c),
		message(msg)
	{

	}

	virtual ~BaseObjectIf() {

	}

	void setCode(int c){
		code = c;
	}
	void setMessage(const std::string & msg){
		message = msg;
	}
protected:
	int code;
	std::string message;
};

#endif

